/******************************************************************************
* AIR SYSTEMS LABORATORY
* AEROSPACE ENGINEERING
* UNIVERISTY OF TEXAS AT AUSTIN
* UAV FLIGHT SOFTWARE 
* DESCRIPTION:
*   
*
* SOURCE: 
* Orignial: 08/14/2008  Jorge Alvarez joroge@gmail.com
* Modified: 03/20/2009	Sergio García-Nieto sergarro@isa.upv.es
* $Id: telemetry_thread.h 4 2009-07-21 17:12:11Z joroge@gmail.com $
*************************************************************************************/
#ifndef TELEMETRY_THREAD_H_
#define TELEMETRY_THREAD_H_

#define SYNCHAR1		0xb5
#define	SYNCHAR2		0x62
#define stateTyp		0x58
#define pidParamTyp		0x50
#define GROUNDMSG_PACKET_LENGTH 25
#define headerStateVector 0xb56258
#define headerPidRoll 0xb5625052
#define headerPidPitch 0xb5625052
#define headerPidYaw 0xb5625059
#define headerPidHeading 0xb5625048
#define headerPidAltitude 0xb5625041
#define headerPidVelocity 0xb5625056



void *telemetry();
int checksumCheckTele(byte* buffer, int packet_len);
#endif /*TELEMETRY_THREAD_H_*/
